{{- $page := . }}
{{- with index site.Menus.social }}
{{- partial "partials/inline/menu/social/walk.html" (dict "page" $page "menuEntries" .) }}
{{- end }}

{{- define "partials/inline/menu/social/walk.html" }}
{{- $page := .page }}
{{- range  $index, $item := .menuEntries }}
{{- if $item.HasChildren}}
<h5>{{$item.Name}}</h5>
<ul class="social-buttons">
    {{- with $item.Children }}
    {{- partial "partials/inline/menu/social/walk.html" (dict "page" $page "menuEntries" .) }}
    {{- end }}
</ul>
{{- else }}
<li>
    <a href="{{$item.URL}}" class="icon icon-xs icon-white {{- if eq $index 0}} pl-0 {{ end }}" data-toggle="tooltip" data-placement="top"
        title="" data-original-title="{{$item.Params.help}}">
        <i class="{{$item.Params.class}}"></i>
    </a>
</li>
{{- end }}
{{- end }}
{{- end }}